<!DOCTYPE html>
<html>

<head>
    <title>Index</title>
    <meta charset="utf-8">
    <script type="text/javascript" src="js/jquery.min.js"></script>
</head>

<body>
    <input type="text" id="myText" value="input text">
    <!--     <script>
    function Obj() {
        this.value = "对象！";
    }
    var value = "global 变量";

    function Fun1() {
        alert(this.value);
    }

    window.Fun1(); //global 变量
    Fun1.call(window); //global 变量
    Fun1.call(document.getElementById('myText')); //input text
    Fun1.call(new Obj()); //对象！
    </script> -->
    <script>
        var func = new function() {
            this.a = "func"
        }
        var myfunc = function(x) {
            var a = "myfunc";
            alert(this.a);
            alert(x);
        }
        myfunc.call(func, "var");
    </script>
</body>

</html>